/*
 * LotView.java
 *
 * Created on June 9, 2002, 12:46 PM
 */

package com.scalar.chiptrack.operations;

/**
 *
 * @author  Mallikarjun
 * @version 1.0
 */
public class LotView {

    private String lotNumber;
    private String lotID;
    private String partNumber;
    private String processStepID;
    private String currentProcess;
    private String dateCode;
    private String locationID;
    private String vendorLocationName;
    private String status;
    private int quantityIn;
    private int quantityOut;
    private String dateIn;
    private String dateOut;
    private String expectedDateOut;
    private float currentYield;

    private int waferQtyIn;
    private int waferQtyOut;
    private int grossDie;
    private String processTypeName;
    private int splitFlag;
    private int mergeFlag;
    private int splitMergeId;
    private String salesOrderNumber;
    private String customerName;
    private String actualShipDate;
    private int shipQty;
    private int serialNumber;
    private String vendorLotNumber;
    private String lotComments;
    private String progReleaseNo;
    private int isRegularIntransitProgrelease = 0; //INDICATES WHETHER THE QUANTITYIN BELONGS TO INTRANSIT(1) OR PROGRAM RELEASE(2) OR REGULAR(0)
    private String shipToVendorName;
    private String movedTo;
    private String fabLotNumber;
    private String lotCategory;
    private String processType;
    private String lotStatus;
    private String testProgram;
    private String holdReason;
    private String goodDie;
    private String userName;
    private String bomLotNo;
    private String bomLotQty;

    public void setLotNumber(String lotNumber){
        this.lotNumber = lotNumber;
    }
    public String getLotNumber(){
        return lotNumber;
    }

    public void setPartNumber(String partNumber){
        this.partNumber = partNumber;
    }

    public void setLotID(String lotID){
    	this.lotID = lotID;
    }
    public String getLotID(){
    	return lotID;
    }
    public String getPartNumber(){
        return partNumber;
    }

    public void setProcessStepID(String processStepID){
    	this.processStepID = processStepID;
    }
    public String getProcessStepID(){
    	return processStepID;
    }

    public void setCurrentProcess(String currentProcess){
        this.currentProcess = currentProcess;
    }
    public String getCurrentProcess(){
        return currentProcess;
    }

    public void setDateCode(String dateCode){
        this.dateCode = dateCode;
    }
    public String getDateCode(){
        return (dateCode == null ? "": dateCode);
    }

    public void setLocationID(String locationID){
    	this.locationID = locationID;
    }
    public String getLocationID(){
    	return locationID;
    }

    public void setVendorLocationName(String vendorLocationName){
        this.vendorLocationName = vendorLocationName;
    }
    public String getVendorLocationName(){
        return vendorLocationName;
    }

    public void setStatus(String status){
        this.status = status;
    }
    public String getStatus(){
        return status;
    }

    public void setQuantityIn(int quantityIn){
        this.quantityIn = quantityIn;
    }
    public int getQuantityIn(){
        return quantityIn;
    }

    public void setQuantityOut(int quantityOut){
        this.quantityOut = quantityOut;
    }
    public int getQuantityOut(){
        return quantityOut;
    }

    public void setDateIn(String dateIn){
        this.dateIn = dateIn;
    }
    // Modified by Basha (06/02/2004)
    public String getDateIn(){
        return (dateIn == null || "01/01/1900".equalsIgnoreCase(dateIn)) ? "" : dateIn;
    }

    public void setDateOut(String dateOut){
        this.dateOut = dateOut;
    }
    // Modified by Basha (06/02/2004)
    public String getDateOut(){
        return (dateOut == null || "01/01/1900".equalsIgnoreCase(dateOut)) ? "" : dateOut;
    }

    public void setCurrentYield(float currentYield){
        this.currentYield = currentYield;
    }
    public float getCurrentYield(){
        return currentYield;
    }

    public int getWaferQtyIn(){
    	return waferQtyIn;
    }
    public void setWaferQtyIn(int waferQtyIn){
    	this.waferQtyIn = waferQtyIn;
    }

    public int getWaferQtyOut(){
    	return waferQtyOut;
    }
    public void setWaferQtyOut(int waferQtyOut){
    	this.waferQtyOut = waferQtyOut;
    }

    public int getGrossDie(){
    	return grossDie;
    }
    public void setGrossDie(int grossDie){
    	this.grossDie = grossDie;
    }

    public String getProcessTypeName(){
    	return processTypeName;
    }
    public void setProcessTypeName(String processTypeName){
    	this.processTypeName = processTypeName;
    }
    public int getSplitFlag(){
    	return splitFlag;
    }
    public void setSplitFlag(int splitFlag){
    	this.splitFlag = splitFlag;
    }

    public int getMergeFlag(){
    	return mergeFlag;
    }
    public void setMergeFlag(int mergeFlag){
    	this.mergeFlag = mergeFlag;
    }

    public int getSplitMergeId(){
    	return splitMergeId;
    }

    public void setSplitMergeId(int splitMergeId){
    	this.splitMergeId = splitMergeId;
    }

    public String getSalesOrderNumber(){
    	return salesOrderNumber;
    }
    public void setSalesOrderNumber(String salesOrderNumber){
    	this.salesOrderNumber = salesOrderNumber;
    }

    public String getCustomerName(){
    	return customerName;
    }
    public void setCustomerName(String customerName){
    	this.customerName = customerName;
    }

    public String getActualShipDate(){
    	return actualShipDate;
    }
    public void setActualShipDate(String actualShipDate){
    	this.actualShipDate = actualShipDate;
    }

    public int getShipQty(){
    	return shipQty;
    }

    public void setShipQty(int shipQty){
    	this.shipQty = shipQty;
    }
    public int getSerialNumber(){
    	return serialNumber;
    }

    public void setSerialNumber(int serialNumber){
    	this.serialNumber = serialNumber;
    }

     public String getVendorLotNumber(){
    	return vendorLotNumber;
    }
    public void setVendorLotNumber(String vendorLotNumber){
    	this.vendorLotNumber = vendorLotNumber;
    }

     public String getLotComments(){
    	return lotComments;
    }
    public void setLotComments(String lotComments){
    	this.lotComments = lotComments;
    }

    public String getProgReleaseNo() {
        return progReleaseNo;
    }

    public void setProgReleaseNo(String progReleaseNo) {
        this.progReleaseNo = progReleaseNo;
    }

    public int getIsRegularIntransitProgrelease() {
        return isRegularIntransitProgrelease;
    }

    public void setIsRegularIntransitProgrelease(int regularIntransitProgrelease) {
        isRegularIntransitProgrelease = regularIntransitProgrelease;
    }

    public String getExpectedDateOut()
    {
        return expectedDateOut;
    }


    public void setExpectedDateOut(String string)
    {
        expectedDateOut = string;
    }

    public String getShipToVendorName()
    {
        return shipToVendorName;
    }

    public void setShipToVendorName(String shipToVendorName)
    {
        this.shipToVendorName = shipToVendorName;
    }

    public String getMovedTo()
    {
        return movedTo;
    }

    public void setMovedTo(String movedTo)
    {
        this.movedTo = movedTo;
    }

    public String getFabLotNumber() {
        return fabLotNumber;
    }

    public void setFabLotNumber(String fabLotNumber) {
        this.fabLotNumber = fabLotNumber;
    }

    public String getLotCategory() {
        return lotCategory;
    }

    public void setLotCategory(String lotCategory) {
        this.lotCategory = lotCategory;
    }

    public String getProcessType() {
        return processType;
    }

    public void setProcessType(String processType) {
        this.processType = processType;
    }

    public String getLotStatus() {
        return lotStatus;
    }

    public void setLotStatus(String lotStatus) {
        this.lotStatus = lotStatus;
    }

    public String getTestProgram() {
        return testProgram;
    }

    public void setTestProgram(String testProgram) {
        this.testProgram = testProgram;
    }

    public String getHoldReason() {
        return holdReason;
    }

    public void setHoldReason(String holdReason) {
        this.holdReason = holdReason;
    }


    public String getGoodDie() {
        return goodDie;
    }

    public void setGoodDie(String goodDie) {
        this.goodDie = goodDie;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getBomLotNo() {
        return bomLotNo;
    }

    public void setBomLotNo(String bomLotNo) {
        this.bomLotNo = bomLotNo;
    }

    public String getBomLotQty() {
        return bomLotQty;
    }

    public void setBomLotQty(String bomLotQty) {
        this.bomLotQty = bomLotQty;
    }

    public String toString()
    {

    	StringBuffer sb = new StringBuffer();

    	sb.append("lotNumber = "+lotNumber+"\n");
    	sb.append("partNumber = "+partNumber+"\n");
    	sb.append("currentProcess = "+currentProcess+"\n");
    	sb.append("vendorLocationName = "+vendorLocationName+"\n");
    	sb.append("salesOrderNumber = "+salesOrderNumber+"\n");
    	sb.append("shipQty = "+shipQty+"\n");
        sb.append("isRegularIntransitProgrelease = "+isRegularIntransitProgrelease+"\n");
        sb.append("shipToVendorName = " + shipToVendorName + "\n");
        sb.append("ProcessType = " + processType + "\n");

        return sb.toString();
    }


}
